Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed a bug in RadicalOfAlgebra #1716

Merged
merged 1 commit into from
Sep 13, 2017

Conversation

ThomasBreuer
Copy link
Contributor

For associative algebras that are not matrix algebras,
the radical is computed in an isomorphic matrix algebra.
Up to now, this ran into an error if Coefficients
returned an immutable list.

This error was found because a recently (?) introduced bug
in the released version of GAP
(the one that caused SolutionMat( [[ 1 ]], [ 1 ] ) to return fail
--it is already fixed in the master branch)
triggered some code to be executed that was not used before.

(One might argue that Coefficients should always return
a new mutable list, but this would cause the creation of
many superfluous lists.
Thus we solve the problem in the place where the list
has to be changed.)

For associative algebras that are not matrix algebras,
the radical is computed in an isomorphic matrix algebra.
Up to now, one ran into an error if `Coefficients`
returned an immutable list.

(One might argue that `Coefficients` should always return
a new mutable list, but this would cause the creation of
many superfluous lists.
Thus we solve the problem in the place where the list
has to be changed.)
@codecov
Copy link

codecov bot commented Sep 13, 2017

Codecov Report

Merging #1716 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1716      +/-   ##
==========================================
+ Coverage   64.44%   64.45%   +<.01%     
==========================================
  Files        1002     1002              
  Lines      326714   326717       +3     
  Branches    13196    13217      +21     
==========================================
+ Hits       210555   210584      +29     
+ Misses     113302   113273      -29     
- Partials     2857     2860       +3
Impacted Files Coverage Δ
lib/algebra.gi 72.45% <100%> (+0.85%) ⬆️
src/hpc/thread.c 46.44% <0%> (-0.2%) ⬇️
hpcgap/lib/hpc/stdtasks.g 38.87% <0%> (+0.25%) ⬆️
src/objset.c 93.04% <0%> (+0.26%) ⬆️
src/hpc/threadapi.c 34.36% <0%> (+0.56%) ⬆️
src/sctable.c 52.2% <0%> (+4.41%) ⬆️

@fingolfin fingolfin added the kind: bug Issues describing general bugs, and PRs fixing them label Sep 13, 2017
@fingolfin fingolfin added this to the GAP 4.9.0 milestone Sep 13, 2017
@fingolfin fingolfin merged commit a85cb57 into gap-system:master Sep 13, 2017
@olexandr-konovalov olexandr-konovalov added the release notes: added PRs introducing changes that have since been mentioned in the release notes label Jan 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Issues describing general bugs, and PRs fixing them release notes: added PRs introducing changes that have since been mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants